<?php

require_once($_SERVER['DOCUMENT_ROOT'] . '/chisholm-swin/application/controllers/ccl_controller.php');

class intranet extends ccl_controller
{
	function __construct()
    {
        // Call the Model constructor
        parent::__construct();
        
            // Load database with "public" permissions
            $this->load->database('public');
            
            // Set template
            $this->template = 'template_intranet';
            
            // Load sidebar
            $this->data['sidebar'] = $this->load->view('public/intranet/sidebar', $this->data, true);
    }

	// View all volumes
	public function index( )
	{
		// Load the "home" view
		$this->data['main_content'] = $this->load->view('public/intranet/home', $this->data, true);
		
		// Load $this->data['main_content'] in the main template
		$this->load->view($this->template, $this->data);
	}
	
	
	public function about_us( )
	{
		// Load the "about_us" view
		$this->data['main_content'] = $this->load->view('public/intranet/about_us', $this->data, true);
		
		// Load $this->data['main_content'] in the main template
		$this->load->view($this->template, $this->data);
	}	

	public function manual( )
	{
		// Load the "Manual" view
		$this->data['main_content'] = $this->load->view('public/intranet/manual', $this->data, true);
		
		// Load $this->data['main_content'] in the main template
		$this->load->view($this->template, $this->data);
	}	

	public function help( )
	{
		// Load the "Help" view
		$this->data['main_content'] = $this->load->view('public/intranet/help', $this->data, true);
		
		// Load $this->data['main_content'] in the main template
		$this->load->view($this->template, $this->data);
	}
        
        public function privacyPolicy( )
        {
  		// Load the "links" view
		$this->data['main_content'] = $this->load->view('public/intranet/privacy_policy', $this->data, true);
		
		// Load $this->data['main_content'] in the main template
		$this->load->view($this->template, $this->data);          
        }
}

?>